package sb.simple.aspectj.normal;

import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

@Service
@Component
public class CalcService {

    public int add(int a, int b) {
        int result = a + b;
        System.out.println("CalcService->add() result:" + result);
        return a + b;
    }

    //测试AfterThrowing通知
    public int divider(int a, int b) {
        int result = a / b;
        System.out.println("CalcService->divider() result:" + result);
        return result;
    }
}